pow
Raise this integer to the power of the given exponent. SQL compatible.
Fails on integer overflow; so if results outside integer range are expected, first convert to big_integer
(e.g. with integer.to_big_integer()
or big_integer(integer)
) and then use big_integer.pow()
.
Note that:
the exponent cannot be negative
if the exponent is 0, the result is 1
if the exponent is 1, the result is the original value
Since
0.13.6
Parameters
exponent
the exponent
Throws
exception
if the result is out of integer range